package com.tianyu.service.mqtt.handler.inbound.next;

import com.tianyu.service.mqtt.common.MqttMessageChannel;
import lombok.extern.slf4j.Slf4j;
import org.springframework.integration.annotation.ServiceActivator;
import org.springframework.messaging.Message;
import org.springframework.stereotype.Component;


/**
 * @author swyan
 */
@Component
@Slf4j
public class DefaultMessageHandler {

    @ServiceActivator(inputChannel = MqttMessageChannel.ChannelName.DEFAULT)
    protected void messageReceived(Message<String> message) {
         log.info(message.toString());
    }
}
